package com.wyy.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("resource_role")
@AllArgsConstructor
@NoArgsConstructor
public class ResourceRole {
    @TableId(value = "rr_id", type = IdType.AUTO)
    private Long rrId;
    private Long resourceId;
    private Long roleId;

    public ResourceRole(Long resourceId, Long roleId) {
        this.resourceId = resourceId;
        this.roleId = roleId;
    }
}
